package com.wlyuan.open.scanner.domain.order.mapping;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lijing
 * @description
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "to.contactName", source = "indexToman")
@Mapping(target = "to.contactMobile", source = "indexTocontact")
@Mapping(target = "to.toTime", source = "indexTotime")
@Mapping(target = "to.provinceCode", source = "indexToprovince")
@Mapping(target = "to.province", source = "toProvinceName")
@Mapping(target = "to.cityCode", source = "indexTocity")
@Mapping(target = "to.city", source = "toCityName")
@Mapping(target = "to.districtCode", source = "indexTodistrict")
@Mapping(target = "to.district", source = "toDistrictName")
@Mapping(target = "to.address", source = "indexTo")
@Mapping(target = "to.location", source = "indexTolocation")
@Mapping(target = "to.locationType", source = "indexTotype")
@Mapping(target = "to.consigneeName", source = "indexEndusername")
public @interface ToMapping {
}
